package com.zhilehuo.mapper;

import com.zhilehuo.model.po.Paragraph;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ParagraphMapper {
    void insertParagraphs(@Param("paragraphs") List<Paragraph> paragraphs);


    List<Paragraph> selectByArticleId(Integer articleId);

    List<Paragraph> getParagraphsByArticleId(Integer articleID);

    void updateByPrimaryKeySelective(Paragraph paragraph);

    int
    updateFont(Integer font, Integer paragraphId);
}
